﻿@using System.Diagnostics.Eventing.Reader
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href=@Url.Content("~/favicon.ico") rel="shortcut icon" type="image/x-icon" />
    <link href="@Url.Content("~/Content/style.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-2.5.3.js")" type="text/javascript"></script>
    <script src="../../Scripts/SearchFuntion.js"></script>
</head>

<body>
    
<div id="container">
    
    <div id="namecup">@Html.ActionLink("Главная","Index","Home")</div>

    <div id="ex">

    <div>
        <ul id="menu">
            <li>@Html.ActionLink("О магазине","Index","Home")</li>
            <li id="category">@Html.ActionLink("Каталог","Catalog","Home")
                @{Html.RenderAction("GenreMenu", "Store");}
            </li>
            <li>@Html.ActionLink("Как сделать заказ","Helper","Home")</li>
            
             <li>@Html.ActionLink("Доставка и оплата","AboutPay","Home")</li>
        </ul><!--menu-->


        <div id="enter">
            @if (User.Identity.IsAuthenticated)
            {
                <div>
                    
                    @Html.ActionLink(User.Identity.Name,"Profile","Account")
                    <span class="left">
                        @Html.ActionLink("Выход","LogOut","Account")
                    </span>   
                </div>
            }
            else
            {
                <div>
            @Html.ActionLink("Регистрация","Register","Account")
                <span class="left">
                    @Html.ActionLink("Вход","Index","Account")
                </span>   
                    </div>         
                    }
        
            <div id="trash">@Html.ActionLink("Моя корзина","Index", "ShoppingCart")</div>
            <div> @{Html.RenderAction("CartSummary", "ShoppingCart");} </div>

            
        </div>
    </div>

    <div id="center">

        <div id="menu_left">
            <div id="menu_left_catalog">
                    @Html.ActionLink("Каталог","Catalog","Home")
                <ul>
                    @{Html.RenderAction("GenreMenu", "Store");}
                </ul>
            </div>
            <div id="search">
                <label>
                    <img src="@Url.Content("~/Content/img/chaynik.png")">
                    <input class="searchInput" type="search" maxlength="25" placeholder="ПОИСК">
                </label>
            </div><!--search-->
        </div>


        <div id="content">
             @RenderBody()
        </div><!--content-->

         <div id="clear_float"></div>

    </div><!--center-->
                
    </div><!--ex-->

</div><!--container-->

    
<div id="contact">
    <div>
        <span>Контакты
            <span id="info"> тел. 0937362716 </span>
        </span>
    </div>
  
</div><!--contact-->

        
    @if(User.IsInRole("Administrator") || User.IsInRole("Moder"))
    {
         <div id="admin">@Html.ActionLink("Управление", "Index", "StoreManager")</div>
    }


</body>
</html>
